<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>易优名品</title>
    <link rel="stylesheet" href="__LayUI__/css/layui.css">
    <link rel="stylesheet" href="__Admin__/css/admin.scss">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    {include file="layout/head" /}

    {include file="layout/sidebar" /}

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div id="mainContain">
            <div class="layui-row">
                <a href="{:url('AuthGroup/add')}">新增角色</a>
            </div>
            <table class="layui-table">
                <colgroup>
                    <col width="150">
                    <col width="100">
                    <col width="200">

                    <col width="200">
                    <col>
                </colgroup>
                <thead>
                <tr>
                    <th>ID</th>
                    <th>标题</th>
                    <th>状态</th>
                    <th>用户组权限</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="res" id="vo"}
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo['title']}</td>
                    <td>{if condition = "$vo['status'] eq 1"}<a href=""  class="layui-btn layui-btn-sm layui-btn-normal">启用</a>{else/}<a href="" class="layui-btn layui-btn-sm layui-btn-danger">禁用</a>{/if}</td>
                    <td>{$vo['rules']}</td>
                    <td>
                        <a href="{:url('edit',array('id'=>$vo['id']))}">修改</a>
                        <a href="{:url('del',array('id'=>$vo['id']))}">删除</a>
                    </td>
                </tr>
                {/volist}

                </tbody>

            </table>
            <nav>
                {$res->render()}
            </nav>
        </div>
    </div>

    {include file="layout/footer" /}

</div>
<script src="__LayUI__/layui.js"></script>
<script>



</script>
</body>
</html>